<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'ID_USER'); ?>
		<?php echo $form->textField($model,'ID_USER',array('size'=>8,'maxlength'=>8, 'class'=>'medium')); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'KODE_TOKO'); ?>
		<?php echo $form->dropdownList($model,'KODE_TOKO',$listToko,array('empty'=>'--none--')); ?>
		<?php echo $form->error($model,'KODE_TOKO'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ID_KOTA'); ?>
		<?php echo $form->dropdownList($model,'ID_KOTA',$listKota, array('empty'=>'--none--')); ?>
		<?php echo $form->error($model,'ID_KOTA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ID_ROLE'); ?>
		<?php echo $form->dropdownList($model,'ID_ROLE',$listRole,array('empty'=>'--none--')); ?>
		<?php echo $form->error($model,'ID_ROLE'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NAMA'); ?>
		<?php echo $form->textField($model,'NAMA',array('size'=>30,'maxlength'=>30, 'class'=>'medium')); ?>
		<?php echo $form->error($model,'NAMA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'EMAIL'); ?>
		<?php echo $form->textField($model,'EMAIL',array('size'=>30,'maxlength'=>30, 'class'=>'medium')); ?>
		<?php echo $form->error($model,'EMAIL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'PASSWORD'); ?>
		<?php echo $form->passwordField($model,'PASSWORD',array('size'=>30,'maxlength'=>30, 'class'=>'medium')); ?>
		<?php echo $form->error($model,'PASSWORD'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ALAMAT'); ?>
		<?php echo $form->textField($model,'ALAMAT',array('size'=>60,'maxlength'=>102, 'class'=>'medium')); ?>
		<?php echo $form->error($model,'ALAMAT'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NOMOR_KTP'); ?>
		<?php echo $form->textField($model,'NOMOR_KTP',array('size'=>60,'maxlength'=>102, 'class'=>'medium')); ?>
		<?php echo $form->error($model,'NOMOR_KTP'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NOMOR_TELEPON'); ?>
		<?php echo $form->textField($model,'NOMOR_TELEPON',array('size'=>60,'maxlength'=>102, 'class'=>'medium')); ?>
		<?php echo $form->error($model,'NOMOR_TELEPON'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TANGGAL_LAHIR'); ?>
		<?php echo $form->textField($model,'TANGGAL_LAHIR',array('size'=>40,'maxlength'=>40, 'class'=>'datepicker dp-applied')); ?>
		
		<?php echo $form->error($model,'TANGGAL_LAHIR'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'JENIS_KELAMIN'); ?>
		<?php echo $form->dropDownList($model,'JENIS_KELAMIN',array('L'=>'Laki-Laki','P'=>'Perempuan'),array()); ?>
		<?php echo $form->error($model,'JENIS_KELAMIN'); ?>
	</div>

	<div class="line">
		
		<button type="submit" class="blue big"><span><?php echo $model->isNewRecord ? 'Create' : 'Save'; ?></span></button>
		
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->